package org.jeecgframework.web.system.pojo.vo;

import org.jeecgframework.core.common.model.json.AjaxJson;
import org.jeecgframework.web.system.pojo.base.CbsInvoiceInfoEntity;
import org.jeecgframework.web.system.pojo.base.CbsInvoiceSnapEntity;
import org.jeecgframework.web.system.pojo.base.ZyCinemaEntity;
import org.jeecgframework.web.util.StaticValue;

import java.io.Serializable;

/**
 * Created by red on 2016/9/22.
 */
public class ProcurementNote extends AjaxJson implements Serializable{

    private String noteId;

    private String selectedPro;

    private String selectedEquip;

    private String clientTaxnum;
    private String clientBankname;
    private String clientBankaccount;
    private String invoiceId;
    private String contactName;
    private String contactEmail;
    private String contactPhone;
    private String fullAddress;



    private String invoiceGenre;

    private String invoiceTitle;

    private String cinemaId;
    private String cinemaName;


    private String isOnsiteServices;

    public String getIsOnsiteServices() {
        return isOnsiteServices;
    }

    public void setIsOnsiteServices(String isOnsiteServices) {
        this.isOnsiteServices = isOnsiteServices;
    }

    public String getCinemaId() {
        return cinemaId;
    }

    public void setCinemaId(String cinemaId) {
        this.cinemaId = cinemaId;
    }

    public String getSelectedPro() {
        return selectedPro;
    }

    public void setSelectedPro(String selectedPro) {
        this.selectedPro = selectedPro;
    }

    public String getSelectedEquip() {
        return selectedEquip;
    }

    public void setSelectedEquip(String selectedEquip) {
        this.selectedEquip = selectedEquip;
    }

    public String getClientTaxnum() {
        return clientTaxnum;
    }

    public void setClientTaxnum(String clientTaxnum) {
        this.clientTaxnum = clientTaxnum;
    }

    public String getContactName() {
        return contactName;
    }

    public void setContactName(String contactName) {
        this.contactName = contactName;
    }

    public String getClientBankname() {
        return clientBankname;
    }

    public void setClientBankname(String clientBankname) {
        this.clientBankname = clientBankname;
    }

    public String getInvoiceId() {
        return invoiceId;
    }

    public void setInvoiceId(String invoiceId) {
        this.invoiceId = invoiceId;
    }

    public String getInvoiceGenre() {
        return invoiceGenre;
    }

    public void setInvoiceGenre(String invoiceGenre) {
        this.invoiceGenre = invoiceGenre;
    }

    public String getInvoiceTitle() {
        return invoiceTitle;
    }

    public void setInvoiceTitle(String invoiceTitle) {
        this.invoiceTitle = invoiceTitle;
    }


    public String getContactEmail() {
        return contactEmail;
    }

    public void setContactEmail(String contactEmail) {
        this.contactEmail = contactEmail;
    }

    public String getContactPhone() {
        return contactPhone;
    }

    public void setContactPhone(String contactPhone) {
        this.contactPhone = contactPhone;
    }

    public String getClientBankaccount() {
        return clientBankaccount;
    }

    public void setClientBankaccount(String clientBankaccount) {
        this.clientBankaccount = clientBankaccount;
    }

    public String getFullAddress() {
        return fullAddress;
    }

    public void setFullAddress(String fullAddress) {
        this.fullAddress = fullAddress;
    }

    public String getNoteId() {
        return noteId;
    }

    public void setNoteId(String noteId) {
        this.noteId = noteId;
    }

    public CbsInvoiceSnapEntity assebleNoteInvoice(){
        CbsInvoiceSnapEntity invoice = new CbsInvoiceSnapEntity();
        invoice.setGenre(StaticValue.DIC_GENRE_CINEMA);
        invoice.setInvoiceGenre(this.getInvoiceGenre());
        invoice.setInvoiceTitle(this.getInvoiceTitle());
        invoice.setClientBankname(this.getClientBankname());
        invoice.setClientBankaccount(this.getClientBankaccount());
        invoice.setClientTaxnum(this.getClientTaxnum());
        return invoice;
    }

    public CbsInvoiceSnapEntity assebleNoteInvoice(CbsInvoiceInfoEntity origInvoice){

        if(origInvoice != null){
            CbsInvoiceSnapEntity invoice = new CbsInvoiceSnapEntity();
            invoice.setGenre(StaticValue.DIC_GENRE_CINEMA);
            invoice.setInvoiceGenre(origInvoice.getInvoiceGenre());
            invoice.setInvoiceTitle(origInvoice.getInvoiceTitle());
            invoice.setClientBankname(origInvoice.getClientBankname());
            invoice.setClientBankaccount(origInvoice.getClientBankaccount());
            invoice.setClientTaxnum(origInvoice.getClientTaxnum());
            invoice.setClientName(origInvoice.getClientName());
            invoice.setClientPhone(origInvoice.getClientPhone());
            invoice.setClientAddress(origInvoice.getClientAddress());
            return invoice;
        }
        return null;
    }

    public String getCinemaName() {
        return cinemaName;
    }

    public void setCinemaName(String cinemaName) {
        this.cinemaName = cinemaName;
    }
}
